class EssayModel {
  String? essaytitle;
  String? essaycontent;
  String? id;

  EssayModel({
    this.essaytitle,
    this.essaycontent,
    this.id,
  });

  EssayModel.fromJson(Map<String, dynamic> json) {
    essaytitle = json['essaytitle']?.toString();
    essaycontent = json['essaycontent']?.toString();
    id = json['id']?.toString();
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['essaytitle'] = essaytitle;
    data['essaycontent'] = essaycontent;
    data['id'] = id;
    return data;
  }
} 